<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    用户名：<input type="text"><br>
    密码：<input type="password">
    <hr>
    <form action="a.php">
        <p>
            用户名：<input type="text">
        </p>
        <p>
            密码：<input type="password">
        </p>
        <p>
            <input type="checkbox"> 记住密码
        </p>
        <button>提交</button>
        <input type="submit">
        <input type="reset">
    </form>
    <button onclick="goBaidu()">跳转</button>
    <script>
        function goBaidu(){
            console.log("hello js!");
            location.href="http://www.baidu.com";
        }
    </script>
</body>
</html>